let pp = () => {
    return new Promise((resolve, reject) => {
        setTimeout(() => {
            reject('我报错啦啦啦啦')
        }, 1000)
    })
}
let tt = () => {
    let flag = true
    if (flag) {
        throw new Error('我报错了tt')
    }
}
export const handleErr = () => {
    pp().then(res => {
        console.log(11, res)
    }).catch(err => {
        throw new Error(err)
    })
    tt()
}